home *** CD-ROM | disk | FTP | other *** search
/ Champak 83 / (Vol 83) My Disc.iso / Interface / md.000 / scripts / frame_1 / DoAction.as
Text File  |  2007-09-26  |  2KB  |  78 lines

  1. function executa(caminho, comando)
  2. {
  3.    switch(comando)
  4.    {
  5.       case 1:
  6.          getURL("FSCommand:RUN.APP",_level0.startdir + caminho);
  7.          break;
  8.       case 2:
  9.          getURL("FSCommand:ShellOpen",_level0.startdir + caminho);
  10.          break;
  11.       default:
  12.          getURL("FSCommand:RUN.APP",_level0.startdir + caminho);
  13.    }
  14. }
  15. function browser(arquivo, tipo, nome)
  16. {
  17.    discador._visible = false;
  18.    fscommand("Browser.Close");
  19.    fscommand("Media.Stop");
  20.    getUrl("FSCommand:Browser.SetPos", "1,77");
  21.    getUrl("FSCommand:Browser.SetSize", "790,453");
  22.    switch(tipo)
  23.    {
  24.       case 1:
  25.          getURL("FSCommand:Browser.SetURL",_level0.startdir + "\\" + arquivo);
  26.          fscommand("Browser.Open");
  27.          _level6.naveg(nome);
  28.          break;
  29.       case 2:
  30.          getURL("FSCommand:Browser.SetURL",arquivo);
  31.          fscommand("Browser.Open");
  32.          _level6.naveg(nome);
  33.          break;
  34.       case 3:
  35.          getURL("FSCommand:ShellOpen",arquivo);
  36.    }
  37. }
  38. function acrobat(arquivo)
  39. {
  40.    getURL("FSCommand:RUNORG",_level0.startdir + "\\interface\\acrobat\\AcroRd32.exe " + _level0.startdir + "\\" + caminho);
  41. }
  42. function naveg(nome)
  43. {
  44.    this.barra_superior.bt_inicio.enabled = true;
  45.    this.barra_superior.bt_inicio.useHandCursor = true;
  46.    this.barra_superior.seguimento.nome = nome;
  47.    this.barra_superior.seguimento._visible = true;
  48. }
  49. function naveg_volta()
  50. {
  51.    this.barra_superior.bt_inicio.useHandCursor = false;
  52.    this.barra_superior.bt_inicio.enabled = false;
  53.    this.barra_superior.seguimento.nome = "";
  54.    this.barra_superior.seguimento._visible = false;
  55. }
  56. function video(caminho)
  57. {
  58.    _level6.barra_superior.som.gotoAndStop(2);
  59.    _level6.discador._visible = false;
  60.    _level6.msg_disca._visible = false;
  61.    fscommand("Browser.Close");
  62.    getUrl("FSCommand:Media.Type", "VIDEO");
  63.    getURL("FSCommand:Media.SelectFile",_level0.ssStartDir + "\\" + caminho);
  64.    getUrl("FSCommand:Media.SetPosition", "196,157");
  65.    getUrl("FSCommand:Media.SetZoom", "100");
  66.    fscommand("Media.Play");
  67.    getUrl("FSCommand:Media.GetLength", "_level0.totaltime");
  68. }
  69. function chama_discador()
  70. {
  71.    fscommand("Browser.Close");
  72.    fscommand("Media.Stop");
  73.    this.msg_disca._visible = true;
  74. }
  75. stop();
  76. getUrl("FSCommand:ORG", "_level0.startdir");
  77. naveg_volta();
  78.